package org.zsk.cs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.zsk.cs.domain.po.RightObligation;
import org.zsk.cs.domain.vo.IdentityAuthVo;
import org.zsk.cs.domain.vo.NoticeVo;
import org.zsk.cs.domain.vo.RightObligationVo;

/**
 * <p>
 * 居民权利与义务 service
 * </p>
 *
 * @author zsk
 * @version 1.0
 * Created on 2020/03/26
 */
public interface RightObligationService extends IService<RightObligation> {

    /**
     * @param rightObligationVo 居民权利与义务Vo
     * @return 返回包含用户名的居民权利与义务list
     * @throws Exception
     */
    public Page<RightObligationVo> getWithUserNameByPage(RightObligationVo rightObligationVo) throws Exception ;

    /**
     * @return 返回包含社区长的社区居民权利与义务
     * @throws Exception
     */
    RightObligation districtHeadGetRightObligation() throws Exception;

    RightObligation residentGetRightObligation();

    /**
     * 社区长添加居民权利与义务
     * @param rightObligationVo
     * @return 返回包含用户名的社区居民权利与义务list
     * @throws Exception
     */
    public boolean districtHeadSave(RightObligationVo rightObligationVo) throws Exception;
}
